<ul id="list-toolbar">
<li><?php echo $html->link(__('Thêm người dùng', true), array('action'=>'add'));?></li>
<li><?php echo $html->link(__('Đổi mật khẩu', true), array('action'=>'change_password'));?></li>
</ul>
<div class="users index">
<h2><?php __('Danh sách người dùng');?></h2>
<table cellpadding="0" cellspacing="0" width="99%" border="2">
<?php $session->flash();?>
<tr>
	<th><?php echo $paginator->sort('username');?></th>
	<th><?php echo $paginator->sort('name');?></th>
	<th><?php echo $paginator->sort('Mã số người dùng');?></th>
	<th><?php echo $paginator->sort('group');?></th>
	<th class="actions"><?php __('Actions');?></th>
</tr>
<?php
$i = 0;
foreach ($user as $user):
	$class = null;
	if ($i++ % 2 == 0) {
		$class = ' class="altrow"';
	}
?>
	<tr<?php echo $class;?>>
		<td align="center">
			<?php echo $html->link($user['User']['username'], array('controller'=> 'users', 'action'=>'edit', $user['User']['id'])); ?>&nbsp;
		</td>
		<td align="center">
			<?php echo $user['User']['name']; ?> &nbsp;
		</td>
		<td align="center">
			<?php echo $user['User']['id']; ?> &nbsp;
		</td>
		<td align="center">
			<?php echo $user['Group']['name']; ?>&nbsp;
		</td>
		<td class="actions" align="center">
			<?php echo $html->link(__('xóa', true), array('action'=>'delete', $user['User']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $user['User']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
</table>
</div>
<div class="paging">
	<?php echo $paginator->prev('<< '.__('Trang trước', true), array(), null, array('class'=>'disabled'));?>
 | 	<?php echo $paginator->numbers();?>
	<?php echo $paginator->next(__('Trang tiếp theo', true).' >>', array(), null, array('class'=>'disabled'));?>
</div>